package org.ourgrid.worker.collectors;

import java.io.IOException;
import java.util.Scanner;

import org.ourgrid.worker.collectors.gmond.GMondCollectorException;
import org.ourgrid.worker.collectors.gmond.GMondUtils;

public class Main {

	public static void main(String[] args) throws GMondCollectorException, IOException {
		
		Process process = Runtime.getRuntime().exec("ps -A");
		Scanner scan = new Scanner((process.getInputStream()));

		while(scan.hasNextLine()) {
			System.out.println(scan.nextLine());
		}
		
		System.out.println(GMondUtils.getInstance().isGMondInstalled());
		System.out.println(GMondUtils.getInstance().isGMondRunning());
		
//		GMondCollectorComponent component = GMondCollectorComponent.getInstance();
//		
//		ServiceID serviceID = new ServiceID("userName","serverName","containerName","serviceName");
//		
//		component.configure(serviceID, component.getServer());
		
		
	}
}
